package com.yj.web.WeChat.Base;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * Created by yanlinyang on 2017/4/18.
 */
@Data
public class WxGetResponse extends WxResponse {
    @JsonProperty("errcode")
    private int errcode;

    @JsonProperty("data")
    private String data;

    public WxGetResponse() {
        this.errcode = 0;
    }

    public boolean isSuccess() {
        return this.errcode == 0;
    }
}
